import time

from machine import Pin

led = Pin(13, Pin.OUT)  # 构建led对象，GPIO12， 输出
while True:
    led.on()  # 高电平
    time.sleep_ms(500)
    led.off()  # 低电平
    time.sleep_ms(500)
